package com.wm.blog.center.vo.ws.es;

import com.wm.blog.center.common.annotation.es.EsField;
import com.wm.blog.center.common.annotation.es.EsId;
import com.wm.blog.center.common.annotation.es.EsIndex;
import com.wm.blog.center.common.enums.es.AnalyzerType;
import com.wm.blog.center.common.enums.es.FieldType;
import com.wm.blog.center.vo.ws.MemberVo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: sshdg
 * @Date: 2021/7/3 17:28
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EsIndex(indexName = "blog2")
public class EsBlogVo {

    @EsField(type = FieldType.OBJECT)
    private MemberVo member;

    /**
     * 主键
     */
    @EsId
    @EsField(type = FieldType.KEYWORD)
    private Long id;
    /**
     * 标题
     */
    @EsField(type = FieldType.TEXT, analyzer = AnalyzerType.IK_SMART)
    private String title;
    /**
     *
     */
    @EsField(type = FieldType.DATE)
    private String createTime;


}
